package cn.kgc.kongqi.service;

import cn.kgc.kongqi.mapper.DistrictMapper;
import cn.kgc.kongqi.pojo.District;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shkstart
 * @create 2020-05-20 23:13
 */
@Service
public class DistrictServiceImpl  implements  DistrictService{

    @Resource
    DistrictMapper districtMapper;
    @Override
    public List<District> selectAll() {
        List<District> districts = districtMapper.selectByExample(null);
        return districts;
    }
}
